package com.lwp.spring.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;
import org.springframework.web.bind.annotation.RestController;

/**
 * TestController
 *
 * @author lanwenping
 * @version 1.0
 * @date 2020/6/7 13:58
 */
@RequestMapping("/test")
@RestController
public class TestController {

    @GetMapping("/test")
    @ResponseBody
    public String test(String name) {
        System.out.println("输入的名字: " + name);
        return "hell, 我的名字: " + name;
    }
}
